﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="OrganizationsInputFields.ascx.cs" Inherits="SERP.Modules.Organizations.OrganizationsInputFields" %>
<%@ Register Src="~/Modules/HRM/Organizations/DropDownListOrganizations.ascx" tagname="DropDownListOrganizations" tagprefix="Organizations" %>
<div class="frow"> 
<asp:Label ID="labelOrgCode" runat="server" Text="OrgCode" CssClass="label"  EnableViewState="False"></asp:Label>
		<asp:TextBox runat="server" ID="txtOrgCode"  Width="400"></asp:TextBox>
</div>
<div class="frow"> 
<asp:Label ID="labelOrgName" runat="server" Text="OrgName" CssClass="label"  EnableViewState="False"></asp:Label>
		<asp:TextBox runat="server" ID="txtOrgName"  Width="400"></asp:TextBox>
</div>
<div class="frow"> 
<asp:Label ID="labelNote" runat="server" Text="Note" CssClass="label"  EnableViewState="False"></asp:Label>
		<asp:TextBox runat="server" ID="txtNote"  Width="400"></asp:TextBox>
</div>
<div class="frow"> 
<asp:Label ID="labelOrgType" runat="server" Text="OrgType" CssClass="label"  EnableViewState="False"></asp:Label>
		<asp:TextBox runat="server" ID="txtOrgType" MaxLength="4" Width="400" ></asp:TextBox>
		<asp:RegularExpressionValidator ID="validExpressionOrgType" Display="dynamic" runat="server" ControlToValidate="txtOrgType"
		ErrorMessage="*dữ liệu dạng số nguyên" ValidationExpression="^\d+$" ValidationGroup="btnSave"></asp:RegularExpressionValidator>
		<asp:RequiredFieldValidator ID="validRQOrgType" ValidationGroup="btnSave" Text="" runat="server" ErrorMessage="* không được để trống" Display="dynamic" ControlToValidate="txtOrgType"></asp:RequiredFieldValidator>
</div>
<div class="frow">	
		<asp:Label ID="labelParentId" runat="server" Text="ParentId" CssClass="label"  EnableViewState="False"></asp:Label>
		<Organizations:DropDownListOrganizations runat="server" ID="txtParentId"  IsAddChooseItem="true" Width="400"></Organizations:DropDownListOrganizations>
		<asp:RequiredFieldValidator ID="validRQParentId" ValidationGroup="btnSave" Text="" runat="server" ErrorMessage="* Bạn phải lựa chọn." Display="dynamic" ControlToValidate="txtParentId"></asp:RequiredFieldValidator>
</div>
